/**
 * 
 */
package fr.fermeManager.library.dao;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import fr.fermeManager.library.model.beans.Transaction;

/**
 * @author Mo
 *
 */
public interface DaoTransaction {

	List<Transaction> getFermeTransactions(int idFerme,boolean isAdmin) throws Exception;

	Transaction ajouterTransaction(int idFerme, Transaction nouveauTransac) throws Exception;

	void supprimerTransaction(int idTransaction) throws Exception;

	void modifierTransaction(Transaction transacParam) throws Exception;
	
	boolean existeTransactionsActifsForFerme(int idFerme) throws Exception;

	boolean existeTransactionsActifsForTypeTransaction(int idTypeTransaction) throws Exception;
	
	void setSession(SqlSession session) throws Exception;
}
